package com.ruoyi.mark.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mark.mapper.CfMaintainMapper;
import com.ruoyi.mark.domain.CfMaintain;
import com.ruoyi.mark.service.ICfMaintainService;

/**
 * 维修任务表功能Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-04
 */
@Service
public class CfMaintainServiceImpl implements ICfMaintainService 
{
    @Autowired
    private CfMaintainMapper cfMaintainMapper;

    /**
     * 查询维修任务表功能
     * 
     * @param id 维修任务表功能主键
     * @return 维修任务表功能
     */
    @Override
    public CfMaintain selectCfMaintainById(Long id)
    {
        return cfMaintainMapper.selectCfMaintainById(id);
    }

    /**
     * 查询维修任务表功能列表
     * 
     * @param cfMaintain 维修任务表功能
     * @return 维修任务表功能
     */
    @Override
    public List<CfMaintain> selectCfMaintainList(CfMaintain cfMaintain)
    {
        return cfMaintainMapper.selectCfMaintainList(cfMaintain);
    }

    /**
     * 新增维修任务表功能
     * 
     * @param cfMaintain 维修任务表功能
     * @return 结果
     */
    @Override
    public int insertCfMaintain(CfMaintain cfMaintain)
    {
        return cfMaintainMapper.insertCfMaintain(cfMaintain);
    }

    /**
     * 修改维修任务表功能
     * 
     * @param cfMaintain 维修任务表功能
     * @return 结果
     */
    @Override
    public int updateCfMaintain(CfMaintain cfMaintain)
    {
        return cfMaintainMapper.updateCfMaintain(cfMaintain);
    }

    /**
     * 批量删除维修任务表功能
     * 
     * @param ids 需要删除的维修任务表功能主键
     * @return 结果
     */
    @Override
    public int deleteCfMaintainByIds(Long[] ids)
    {
        return cfMaintainMapper.deleteCfMaintainByIds(ids);
    }

    /**
     * 删除维修任务表功能信息
     * 
     * @param id 维修任务表功能主键
     * @return 结果
     */
    @Override
    public int deleteCfMaintainById(Long id)
    {
        return cfMaintainMapper.deleteCfMaintainById(id);
    }
}
